package com.tyc.lifecycle.model;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

public class Car implements InitializingBean {
    public Car() {
        System.out.println("car construct ...");
    }

    @PostConstruct
    public void init(){
        System.out.println("car init ...");
    }

    public void destroy(){
        System.out.println("car destroy ...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {

    }
}
